package com.swh.listener;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @Author: swh
 * @Description:
 * @Date: 2021/1/15 16:59
 * @Version: 1.0
 */
@Component
@RabbitListener(queues = "ktc_spit")
public class Consumer2 {

    @RabbitHandler
    public void receiveMsg(String msg){
        System.out.println("ktc_spit接收到的消息: "+msg);
    }
}
